\documentclass[a4paper,10pt]{report}

% PyTOUGH user's guide
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{gensymb}
\usepackage{makeidx}
\usepackage{listings}
\usepackage{framed,color}
\definecolor{shadecolor}{gray}{0.9}
\definecolor{codehighlight}{cmyk}{0.64,0,0.95,0.40}
\definecolor{codestring}{rgb}{0.58,0,0.82}
\definecolor{codecomment}{rgb}{0,0.6,0}
\usepackage[authoryear,round]{natbib}   % for references
\usepackage[hmargin=3.5cm]{geometry} % change margin
\usepackage{rotating} % for sideways tables
\usepackage{hyperref}
\usepackage{longtable}

\makeindex

\hypersetup{
  pdftitle = PyTOUGH User's Guide,
  pdfauthor = Adrian Croucher,
  colorlinks = true, % Colours links instead of ugly boxes
  urlcolor = blue, % Colour for external hyperlinks
  linkcolor = blue, % Colour of internal links
  citecolor = red % Colour of citations
}

% code listings:
\lstset{language=Python,
  basicstyle=\ttfamily,
  basewidth={.5em,0.5em},
  keywordstyle=\color{codehighlight},
  stringstyle=\color{codestring},
  commentstyle=\color{codecomment},
  showstringspaces=false,
  breaklines=true,
  breakatwhitespace=true,
  frame=bt}

%------------------------------------------------------------------------
\begin{document}

\include{titlepage}

%------------------------------------------------------------------------
\tableofcontents
%\listoffigures
\listoftables

%------------------------------------------------------------------------
\include{introduction}
\include{mulgrids}
\include{t2grids}
\include{t2data}
\include{t2incons}
\include{t2listing}
\include{t2thermo}
\include{IAPWS97}
%------------------------------------------------------------------------
\renewcommand\bibname{References} % rather than 'Bibliography'
\bibliographystyle{PyTOUGH}
\addcontentsline{toc}{chapter}{References} % adds to table of contents
\bibliography{PyTOUGH}

\appendix
\include{appendix_geometry_format}

\clearpage
\addcontentsline{toc}{chapter}{Index}
\printindex


%------------------------------------------------------------------------

\end{document}
